package com.xxgc.ssm.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SchoolsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SchoolsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSIdIsNull() {
            addCriterion("s_id is null");
            return (Criteria) this;
        }

        public Criteria andSIdIsNotNull() {
            addCriterion("s_id is not null");
            return (Criteria) this;
        }

        public Criteria andSIdEqualTo(Integer value) {
            addCriterion("s_id =", value, "sId");
            return (Criteria) this;
        }

        public Criteria andSIdNotEqualTo(Integer value) {
            addCriterion("s_id <>", value, "sId");
            return (Criteria) this;
        }

        public Criteria andSIdGreaterThan(Integer value) {
            addCriterion("s_id >", value, "sId");
            return (Criteria) this;
        }

        public Criteria andSIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("s_id >=", value, "sId");
            return (Criteria) this;
        }

        public Criteria andSIdLessThan(Integer value) {
            addCriterion("s_id <", value, "sId");
            return (Criteria) this;
        }

        public Criteria andSIdLessThanOrEqualTo(Integer value) {
            addCriterion("s_id <=", value, "sId");
            return (Criteria) this;
        }

        public Criteria andSIdIn(List<Integer> values) {
            addCriterion("s_id in", values, "sId");
            return (Criteria) this;
        }

        public Criteria andSIdNotIn(List<Integer> values) {
            addCriterion("s_id not in", values, "sId");
            return (Criteria) this;
        }

        public Criteria andSIdBetween(Integer value1, Integer value2) {
            addCriterion("s_id between", value1, value2, "sId");
            return (Criteria) this;
        }

        public Criteria andSIdNotBetween(Integer value1, Integer value2) {
            addCriterion("s_id not between", value1, value2, "sId");
            return (Criteria) this;
        }

        public Criteria andSNameIsNull() {
            addCriterion("s_name is null");
            return (Criteria) this;
        }

        public Criteria andSNameIsNotNull() {
            addCriterion("s_name is not null");
            return (Criteria) this;
        }

        public Criteria andSNameEqualTo(String value) {
            addCriterion("s_name =", value, "sName");
            return (Criteria) this;
        }

        public Criteria andSNameNotEqualTo(String value) {
            addCriterion("s_name <>", value, "sName");
            return (Criteria) this;
        }

        public Criteria andSNameGreaterThan(String value) {
            addCriterion("s_name >", value, "sName");
            return (Criteria) this;
        }

        public Criteria andSNameGreaterThanOrEqualTo(String value) {
            addCriterion("s_name >=", value, "sName");
            return (Criteria) this;
        }

        public Criteria andSNameLessThan(String value) {
            addCriterion("s_name <", value, "sName");
            return (Criteria) this;
        }

        public Criteria andSNameLessThanOrEqualTo(String value) {
            addCriterion("s_name <=", value, "sName");
            return (Criteria) this;
        }

        public Criteria andSNameLike(String value) {
            addCriterion("s_name like", value, "sName");
            return (Criteria) this;
        }

        public Criteria andSNameNotLike(String value) {
            addCriterion("s_name not like", value, "sName");
            return (Criteria) this;
        }

        public Criteria andSNameIn(List<String> values) {
            addCriterion("s_name in", values, "sName");
            return (Criteria) this;
        }

        public Criteria andSNameNotIn(List<String> values) {
            addCriterion("s_name not in", values, "sName");
            return (Criteria) this;
        }

        public Criteria andSNameBetween(String value1, String value2) {
            addCriterion("s_name between", value1, value2, "sName");
            return (Criteria) this;
        }

        public Criteria andSNameNotBetween(String value1, String value2) {
            addCriterion("s_name not between", value1, value2, "sName");
            return (Criteria) this;
        }

        public Criteria andSAddressIsNull() {
            addCriterion("s_address is null");
            return (Criteria) this;
        }

        public Criteria andSAddressIsNotNull() {
            addCriterion("s_address is not null");
            return (Criteria) this;
        }

        public Criteria andSAddressEqualTo(String value) {
            addCriterion("s_address =", value, "sAddress");
            return (Criteria) this;
        }

        public Criteria andSAddressNotEqualTo(String value) {
            addCriterion("s_address <>", value, "sAddress");
            return (Criteria) this;
        }

        public Criteria andSAddressGreaterThan(String value) {
            addCriterion("s_address >", value, "sAddress");
            return (Criteria) this;
        }

        public Criteria andSAddressGreaterThanOrEqualTo(String value) {
            addCriterion("s_address >=", value, "sAddress");
            return (Criteria) this;
        }

        public Criteria andSAddressLessThan(String value) {
            addCriterion("s_address <", value, "sAddress");
            return (Criteria) this;
        }

        public Criteria andSAddressLessThanOrEqualTo(String value) {
            addCriterion("s_address <=", value, "sAddress");
            return (Criteria) this;
        }

        public Criteria andSAddressLike(String value) {
            addCriterion("s_address like", value, "sAddress");
            return (Criteria) this;
        }

        public Criteria andSAddressNotLike(String value) {
            addCriterion("s_address not like", value, "sAddress");
            return (Criteria) this;
        }

        public Criteria andSAddressIn(List<String> values) {
            addCriterion("s_address in", values, "sAddress");
            return (Criteria) this;
        }

        public Criteria andSAddressNotIn(List<String> values) {
            addCriterion("s_address not in", values, "sAddress");
            return (Criteria) this;
        }

        public Criteria andSAddressBetween(String value1, String value2) {
            addCriterion("s_address between", value1, value2, "sAddress");
            return (Criteria) this;
        }

        public Criteria andSAddressNotBetween(String value1, String value2) {
            addCriterion("s_address not between", value1, value2, "sAddress");
            return (Criteria) this;
        }

        public Criteria andSImgIsNull() {
            addCriterion("s_img is null");
            return (Criteria) this;
        }

        public Criteria andSImgIsNotNull() {
            addCriterion("s_img is not null");
            return (Criteria) this;
        }

        public Criteria andSImgEqualTo(String value) {
            addCriterion("s_img =", value, "sImg");
            return (Criteria) this;
        }

        public Criteria andSImgNotEqualTo(String value) {
            addCriterion("s_img <>", value, "sImg");
            return (Criteria) this;
        }

        public Criteria andSImgGreaterThan(String value) {
            addCriterion("s_img >", value, "sImg");
            return (Criteria) this;
        }

        public Criteria andSImgGreaterThanOrEqualTo(String value) {
            addCriterion("s_img >=", value, "sImg");
            return (Criteria) this;
        }

        public Criteria andSImgLessThan(String value) {
            addCriterion("s_img <", value, "sImg");
            return (Criteria) this;
        }

        public Criteria andSImgLessThanOrEqualTo(String value) {
            addCriterion("s_img <=", value, "sImg");
            return (Criteria) this;
        }

        public Criteria andSImgLike(String value) {
            addCriterion("s_img like", value, "sImg");
            return (Criteria) this;
        }

        public Criteria andSImgNotLike(String value) {
            addCriterion("s_img not like", value, "sImg");
            return (Criteria) this;
        }

        public Criteria andSImgIn(List<String> values) {
            addCriterion("s_img in", values, "sImg");
            return (Criteria) this;
        }

        public Criteria andSImgNotIn(List<String> values) {
            addCriterion("s_img not in", values, "sImg");
            return (Criteria) this;
        }

        public Criteria andSImgBetween(String value1, String value2) {
            addCriterion("s_img between", value1, value2, "sImg");
            return (Criteria) this;
        }

        public Criteria andSImgNotBetween(String value1, String value2) {
            addCriterion("s_img not between", value1, value2, "sImg");
            return (Criteria) this;
        }

        public Criteria andSCeoIsNull() {
            addCriterion("s_ceo is null");
            return (Criteria) this;
        }

        public Criteria andSCeoIsNotNull() {
            addCriterion("s_ceo is not null");
            return (Criteria) this;
        }

        public Criteria andSCeoEqualTo(Integer value) {
            addCriterion("s_ceo =", value, "sCeo");
            return (Criteria) this;
        }

        public Criteria andSCeoNotEqualTo(Integer value) {
            addCriterion("s_ceo <>", value, "sCeo");
            return (Criteria) this;
        }

        public Criteria andSCeoGreaterThan(Integer value) {
            addCriterion("s_ceo >", value, "sCeo");
            return (Criteria) this;
        }

        public Criteria andSCeoGreaterThanOrEqualTo(Integer value) {
            addCriterion("s_ceo >=", value, "sCeo");
            return (Criteria) this;
        }

        public Criteria andSCeoLessThan(Integer value) {
            addCriterion("s_ceo <", value, "sCeo");
            return (Criteria) this;
        }

        public Criteria andSCeoLessThanOrEqualTo(Integer value) {
            addCriterion("s_ceo <=", value, "sCeo");
            return (Criteria) this;
        }

        public Criteria andSCeoIn(List<Integer> values) {
            addCriterion("s_ceo in", values, "sCeo");
            return (Criteria) this;
        }

        public Criteria andSCeoNotIn(List<Integer> values) {
            addCriterion("s_ceo not in", values, "sCeo");
            return (Criteria) this;
        }

        public Criteria andSCeoBetween(Integer value1, Integer value2) {
            addCriterion("s_ceo between", value1, value2, "sCeo");
            return (Criteria) this;
        }

        public Criteria andSCeoNotBetween(Integer value1, Integer value2) {
            addCriterion("s_ceo not between", value1, value2, "sCeo");
            return (Criteria) this;
        }

        public Criteria andSValidIsNull() {
            addCriterion("s_valid is null");
            return (Criteria) this;
        }

        public Criteria andSValidIsNotNull() {
            addCriterion("s_valid is not null");
            return (Criteria) this;
        }

        public Criteria andSValidEqualTo(String value) {
            addCriterion("s_valid =", value, "sValid");
            return (Criteria) this;
        }

        public Criteria andSValidNotEqualTo(String value) {
            addCriterion("s_valid <>", value, "sValid");
            return (Criteria) this;
        }

        public Criteria andSValidGreaterThan(String value) {
            addCriterion("s_valid >", value, "sValid");
            return (Criteria) this;
        }

        public Criteria andSValidGreaterThanOrEqualTo(String value) {
            addCriterion("s_valid >=", value, "sValid");
            return (Criteria) this;
        }

        public Criteria andSValidLessThan(String value) {
            addCriterion("s_valid <", value, "sValid");
            return (Criteria) this;
        }

        public Criteria andSValidLessThanOrEqualTo(String value) {
            addCriterion("s_valid <=", value, "sValid");
            return (Criteria) this;
        }

        public Criteria andSValidLike(String value) {
            addCriterion("s_valid like", value, "sValid");
            return (Criteria) this;
        }

        public Criteria andSValidNotLike(String value) {
            addCriterion("s_valid not like", value, "sValid");
            return (Criteria) this;
        }

        public Criteria andSValidIn(List<String> values) {
            addCriterion("s_valid in", values, "sValid");
            return (Criteria) this;
        }

        public Criteria andSValidNotIn(List<String> values) {
            addCriterion("s_valid not in", values, "sValid");
            return (Criteria) this;
        }

        public Criteria andSValidBetween(String value1, String value2) {
            addCriterion("s_valid between", value1, value2, "sValid");
            return (Criteria) this;
        }

        public Criteria andSValidNotBetween(String value1, String value2) {
            addCriterion("s_valid not between", value1, value2, "sValid");
            return (Criteria) this;
        }

        public Criteria andSCreateIsNull() {
            addCriterion("s_create is null");
            return (Criteria) this;
        }

        public Criteria andSCreateIsNotNull() {
            addCriterion("s_create is not null");
            return (Criteria) this;
        }

        public Criteria andSCreateEqualTo(Date value) {
            addCriterion("s_create =", value, "sCreate");
            return (Criteria) this;
        }

        public Criteria andSCreateNotEqualTo(Date value) {
            addCriterion("s_create <>", value, "sCreate");
            return (Criteria) this;
        }

        public Criteria andSCreateGreaterThan(Date value) {
            addCriterion("s_create >", value, "sCreate");
            return (Criteria) this;
        }

        public Criteria andSCreateGreaterThanOrEqualTo(Date value) {
            addCriterion("s_create >=", value, "sCreate");
            return (Criteria) this;
        }

        public Criteria andSCreateLessThan(Date value) {
            addCriterion("s_create <", value, "sCreate");
            return (Criteria) this;
        }

        public Criteria andSCreateLessThanOrEqualTo(Date value) {
            addCriterion("s_create <=", value, "sCreate");
            return (Criteria) this;
        }

        public Criteria andSCreateIn(List<Date> values) {
            addCriterion("s_create in", values, "sCreate");
            return (Criteria) this;
        }

        public Criteria andSCreateNotIn(List<Date> values) {
            addCriterion("s_create not in", values, "sCreate");
            return (Criteria) this;
        }

        public Criteria andSCreateBetween(Date value1, Date value2) {
            addCriterion("s_create between", value1, value2, "sCreate");
            return (Criteria) this;
        }

        public Criteria andSCreateNotBetween(Date value1, Date value2) {
            addCriterion("s_create not between", value1, value2, "sCreate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}